<?php
$orderid = $_REQUEST['orderid'];
	require('inc/loginauth.php');
	        include_once('inc/global.php');
			require_once('inc/userdata.php');
$ordersyourr = yourorders();
	include('header.php');
	   if(isset($_REQUEST['email']))
                DoLogin($_REQUEST['email'],$_REQUEST['password']);
?>
</head>
<body>
<?php
	include('inc/login.php')
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
<? 
	include('inc/nav.php');
?>
</td></tr><tr><td>
<div class="contentstuff">
             <?php if(IsLoggedIn()){ ?>
<h2><span class="ui-icon-arrowstop-1-w"></span>Your Orders <?=GetUserName()?></h2>
<?php 
while ($ordersyour = $ordersyourr->fetch_assoc()){ 
?> 
<div style="float:left; padding: 10px;">
<h2>Shipping Info</h2>
Name: <?=$ordersyour['shipping_FirstName']?> <?=$ordersyour['shipping_LastName']?><br />
Shipping Address: <?=$ordersyour['shipping_address']?><br />
City: <?=$ordersyour['shipping_city']?><br />
State: <?=$ordersyour['shipping_state']?><br />
Zip: <?=$ordersyour['shipping_zip']?><br />
<h2>Billing Info</h2>
Name: <?=$ordersyour['billing_FirstName']?> <?=$ordersyour['billing_LastName']?><br />
Billing Address: <?=$ordersyour['billing_address']?><br />
City: <?=$ordersyour['billing_city']?><br />
State: <?=$ordersyour['billing_state']?><br />
Zip: <?=$ordersyour['billing_zip']?><br />
<h2>What was Ordered</h2>
Name: <?=$ordersyour['product_name']?><br />
Price of Item: $<?=$ordersyour['price']?><br />
Amount Ordered: <?=$ordersyour['order_quantity']?><br />
Cost of Order: $<?php echo $ordersyour['price'] * $ordersyour['order_quantity'] ?><br />
</div>
<?php } ?>
</div>
<?php } else { ?>
<h2><span class="ui-icon-arrowstop-1-w"></span>You Have No orders!</h2>
You aren't logged in. So You need to log in to see your orders. But don't worry, just scroll your mouse up and click Login and you will be able to view all your orders.</div>
<?php } ?>
</td></tr></table>
</body>
</html>